Open Webpage

Command Prototype

iRet = WebBrowser.GoURL(hWeb,sURL,bWait,arrElement,iTimeOut,optionArgs)

Command Description

Control the browser to load the specified link (URL)

Parameter Description
Required Parameter
hWeb--Browser's handle string returned with WebBrowser.Create or WebBrowser.Bind functions
sURL--The webpage link address (URL) to be loaded
bWait--Specify the function whether to wait until the webpage is loaded to return; When true is passed, it must wait until the page is loaded or the load fails, when false is passed, it will return immediately when the page starts to load
arrElement--When the page is loaded, it determines whether the specified element exists. The element feature is an array. When a specific element appears, the function will return the index of the found element (starting from 1). If none of the elements appears, wait for at least one element to appear or time out to exit; if the parameter is left blank, no element will be evaluated
iTimeOut--The timeout to wait for the page to load. If it expires, it is determined that the page fails to load. The default is 30000 milliseconds (30 seconds)
Optional Parameter
bContinueOnError--Specify whether automation should continue if the activity throws an error. This field only supports Boolean values ​​(True, False). The default is False
iDelayAfter--The delay in milliseconds after the activity is executed. The default is 300 milliseconds
iDelayBefore--The delay in milliseconds before the activity starts any operation. The default is 200 milliseconds
return
iRet--The variable used to save the output of the function call

results matching ""

    No results matching ""